﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="PositionList.ascx.cs"
    Inherits="Framework.Module.Adsvertising.Admin.PositionList" %>
<table cellspacing="0" cellpadding="0" width="100%" border="0" align="center">
    <tr>
        <td valign="top">
             
			    <asp:DataGrid id="dgrPositions" CellPadding="5" runat="server" Width="100%" AutoGenerateColumns="False" OnItemCommand="dgrPositions_ItemCommand" OnItemDataBound="dgrPositions_ItemDataBound" meta:resourcekey="dgrPositionsResource1">
				    <AlternatingItemStyle CssClass="DarkRow"></AlternatingItemStyle>
				    <ItemStyle CssClass="LightRow"></ItemStyle>
				    <HeaderStyle Font-Bold="True" CssClass="HeaderRow"></HeaderStyle>
				    <Columns>
					    <asp:BoundColumn Visible="False" DataField="Pos_ID" HeaderText="ID"></asp:BoundColumn>
					    <asp:BoundColumn DataField="Pos_Position" HeaderText="Vị tr&#237;">
						    <HeaderStyle Width="25%"></HeaderStyle>
					    </asp:BoundColumn>
					    <asp:BoundColumn DataField="Pos_Name" HeaderText="T&#234;n">
						    <HeaderStyle Width="40%"></HeaderStyle>
					    </asp:BoundColumn>
					    <asp:BoundColumn DataField="Pos_Type" HeaderText="Kiểu">
						    <HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
						    <ItemStyle HorizontalAlign="Center"></ItemStyle>
					    </asp:BoundColumn>
					    <asp:TemplateColumn>
						    <HeaderStyle Width="1%"></HeaderStyle>
						    <ItemStyle HorizontalAlign="Center"></ItemStyle>
						    <ItemTemplate>
							    <asp:Button id="ImageButton1" runat="server" CausesValidation="False" Width="60px" Text="Sửa"
								    CommandName="edit" meta:resourcekey="ImageButton1Resource1"></asp:Button>
						    </ItemTemplate>
					    </asp:TemplateColumn>
					    <asp:TemplateColumn>
						    <HeaderStyle Width="1%"></HeaderStyle>
						    <ItemStyle HorizontalAlign="Center"></ItemStyle>
						    <ItemTemplate>
							    <asp:Button id="cmdDel" CausesValidation="False" runat="server" Text="X&#243;a" Width="60px" CommandName="del" meta:resourcekey="cmdDelResource1"></asp:Button>
						    </ItemTemplate>
					    </asp:TemplateColumn>
				    </Columns>
			    </asp:DataGrid>
			
        </td>
    </tr>
    <tr>
        <td valign="top" align="center">
            <br>
            
                <table cellspacing="0" cellpadding="3" width="600" border="0" align="center" class="Area">
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="lblUpdateStatus" runat="server" meta:resourcekey="lblUpdateStatusResource1"></asp:Label></td>
                    </tr>
                    <tr>
                        <td width="20%">
                        </td>
                        <td class="tdLeft">
                            <asp:TextBox ID="txtID" Width="250px" runat="server" Visible="False" Enabled="False" meta:resourcekey="txtIDResource1"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td width="20%" class="tdLeft">
                            <asp:Label ID="lblName" runat="server" Text="Tên vị trí" meta:resourcekey="lblNameResource1"></asp:Label></td>
                        <td class="tdLeft">
                            <asp:TextBox ID="txtName" Width="250px" runat="server" meta:resourcekey="txtNameResource1"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="(*)"
                                Display="Dynamic" ControlToValidate="txtName" meta:resourcekey="RequiredFieldValidator2Resource1"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td class="tdLeft">
                            <asp:Label ID="lblPosition" runat="server" Text="Vị trí" meta:resourcekey="lblPositionResource1"></asp:Label></td>
                        <td class="tdLeft">
                            <asp:TextBox ID="txtPosition" Width="250px" runat="server" meta:resourcekey="txtPositionResource1"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="(*)"
                                Display="Dynamic" ControlToValidate="txtPosition" meta:resourcekey="RequiredFieldValidator1Resource1"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td class="tdLeft">
                            <asp:Label ID="lblTypeOfAds" runat="server" Text="Loại quảng cáo" meta:resourcekey="lblTypeOfAdsResource1"></asp:Label></td>
                        <td class="tdLeft">
                            <asp:DropDownList ID="dropType" runat="server" meta:resourcekey="dropTypeResource1">
                                <asp:ListItem Value="default" meta:resourcekey="ListItemResource1">B&#236;nh thường</asp:ListItem>
                                <asp:ListItem Value="rotator" meta:resourcekey="ListItemResource2">Xoay v&#242;ng</asp:ListItem>
                                <asp:ListItem Value="random" meta:resourcekey="ListItemResource3">Ngẫu nhi&#234;n</asp:ListItem>
                                <asp:ListItem Value="popup" meta:resourcekey="ListItemResource4">PopUp</asp:ListItem>
                                <asp:ListItem Value="leftfloat" meta:resourcekey="ListItemResource5">Trượt tr&#225;i</asp:ListItem>
                                <asp:ListItem Value="rightfloat" meta:resourcekey="ListItemResource6">Trượt phải</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="tdLeft">
                            <asp:Label ID="lblSize" runat="server" Text="Kích thước" meta:resourcekey="lblSizeResource1"></asp:Label></td>
                        <td class="tdLeft">
                            <asp:TextBox ID="txtWidth" Width="40px" runat="server" meta:resourcekey="txtWidthResource1">0</asp:TextBox>&nbsp;x
                            <asp:TextBox ID="txtHeight" Width="40px" runat="server" meta:resourcekey="txtHeightResource1">0</asp:TextBox>&nbsp;(pixel)</td>
                    </tr>
                    <tr>
                        <td class="tdLeft"><asp:Label ID="lblSpace" runat="server" Text="Đoạn cách HTML" meta:resourcekey="lblSpaceResource1"></asp:Label>
                            </td>
                        <td class="tdLeft">
                            <asp:TextBox ID="txtSeparateCode" Width="250px" runat="server" Rows="4" TextMode="MultiLine" meta:resourcekey="txtSeparateCodeResource1"></asp:TextBox></td>
                    </tr>
                </table>
           
            <br>
            <table cellspacing="0" cellpadding="3" width="600" height="40" border="0" class="ActionBox">
                <tr>
                    <td width="20%"></td>
                    <td class="tdLeft">
                        <asp:Button ID="btnUpdate" CssClass="Button70" runat="server" OnClick="btnUpdate_Click"
                            Text="Update" meta:resourcekey="btnUpdateResource1"></asp:Button>
                        <asp:Button ID="btnAddNew" CssClass="Button70" runat="server" OnClick="btnAddNew_Click"
                            Text="Add" meta:resourcekey="btnAddNewResource1"></asp:Button>
                        <asp:Button ID="btnEmpty" CssClass="Button70" runat="server" CausesValidation="False"
                            OnClick="btnEmpty_Click" Text="Cancel" meta:resourcekey="btnEmptyResource1"></asp:Button></td>
                </tr>
            </table>
        </td>
    </tr>
</table>
